home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act6b / 00035.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  491 b   |  26 lines

  1. on moveyes
  2.   global bugeyesx, bugeyesy, eyerange
  3.   set eyegore to eyerange / 2
  4.   set mh to the mouseH
  5.   set mv to the mouseV
  6.   if mh > 640 then
  7.     set mh to 640
  8.   end if
  9.   if mh < 0 then
  10.     set mh to 0
  11.   end if
  12.   if mv > 480 then
  13.     set mv to 480
  14.   end if
  15.   if mv < 0 then
  16.     set mv to 0
  17.   end if
  18.   set mh to bugeyesx - ((bugeyesx - mh) / eyerange)
  19.   set mv to bugeyesy - ((bugeyesy - mv) / eyerange)
  20.   set the locH of sprite 19 to mh
  21.   set the locV of sprite 19 to mv
  22. end
  23.  
  24. on sodit
  25. end
  26.